package wifiunion.com.notice.adapter;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import wifiunion.com.notice.R;


/**
 * Created by Administrator on 2016/11/23.
 */

public class RelevanceNoticeListViewHolder extends RecyclerView.ViewHolder {

    public ImageView mNoticelistsbdx1iv;
    public ImageView mNoticelistsbdx2iv;
//    public TextView mNoticelisttimestv;
    public TextView mNoticelistsbsbtv;
//    public TextView mNoticelisttzdxtv;
    public TextView mNoticelisttznrtv;
    public TextView mNoticelistGrouptv;
    public ImageView mNoticelistRecordtv;
    public TextView mNoticelistlooktv;
    public TextView mNoticelistedittv;
    public TextView mNoticelistdeletetv;
    public TextView mNoticelistcopytv;
    public ImageView mNoticelistOverdue;

    public LinearLayout singleHeadLL;
    public ImageView mNoticegridSingleheaderiv;
    public RelativeLayout doubleHeadLL;
    public ImageView mNoticegriDoubleheader1iv;
    public ImageView mNoticegriDoubleheader2iv;
    public RelativeLayout threeHeadLL;
    public ImageView mNoticegriThreeheader1iv;
    public ImageView mNoticegriThreeheader2iv;
    public ImageView mNoticegriThreeheader3iv;


    public TextView mNoticegriddatetv;
    public TextView mNoticegridweektv;
    public TextView mNoticegridtimetv;

    public TextView mNoticegridsbdxtv;
//    public TextView mNoticegridtimestv;
    public TextView mNoticegridsbsbtv;

    public TextView mNoticegridtznrtv;
//    public TextView mNoticegridGrouptv;

    public TextView mNoticegridRecordtv;
    public TextView mNoticegridlooktv;
    public TextView mMerbergridedittv;
    public TextView mNoticegriddeletetv;
    public TextView mNoticegridcopytv;
    public ImageView mNoticeOverdueIv;

    public RelativeLayout mNoticeGridPathrl;

    public ImageView mChooseStateIv;



    /**
     * @param itemView
     * @param itemType 0 列表视图
     *                 1 网格视图
     */
    public RelevanceNoticeListViewHolder(View itemView, int itemType) {
        super(itemView);



            singleHeadLL = (LinearLayout) itemView.findViewById(R.id.single_head_ll);
            mNoticegridSingleheaderiv = (ImageView) itemView.findViewById(R.id.notice_grid_item_singleheader_iv);


            doubleHeadLL = (RelativeLayout) itemView.findViewById(R.id.double_head_ll);
            mNoticegriDoubleheader1iv = (ImageView) itemView.findViewById(R.id.notice_grid_item_doubleheader1_iv);
            mNoticegriDoubleheader2iv = (ImageView) itemView.findViewById(R.id.notice_grid_item_doubleheader2_iv);

            threeHeadLL = (RelativeLayout) itemView.findViewById(R.id.three_head_ll);
            mNoticegriThreeheader1iv = (ImageView) itemView.findViewById(R.id.notice_grid_item_threeheader1_iv);
            mNoticegriThreeheader2iv = (ImageView) itemView.findViewById(R.id.notice_grid_item_threeheader2_iv);
            mNoticegriThreeheader3iv = (ImageView) itemView.findViewById(R.id.notice_grid_item_threeheader3_iv);

            mNoticegridsbdxtv = (TextView) itemView.findViewById(R.id.sbdx_name_tv);
//            mNoticegridtimestv = (TextView) itemView.findViewById(R.id.notice_grid_times_tv);


           mNoticegriddatetv = (TextView) itemView.findViewById(R.id.notice_grid_date_tv);
           mNoticegridweektv = (TextView) itemView.findViewById(R.id.notice_grid_week_tv);
           mNoticegridtimetv = (TextView) itemView.findViewById(R.id.notice_grid_time_tv);



            mNoticegridsbsbtv = (TextView) itemView.findViewById(R.id.notice_grid_sbsb_tv);
//            mNoticegridtzdxtv = (TextView) itemView.findViewById(R.id.notice_grid_tzdx_tv);
            mNoticegridtznrtv = (TextView) itemView.findViewById(R.id.notice_grid_tznr_tv);
//            mNoticegridGrouptv = (TextView) itemView.findViewById(R.id.notice_grid_noticegroup_tv);



            mNoticegridRecordtv = (TextView) itemView.findViewById(R.id.notice_grid_item_record_tv);
            mNoticegridlooktv = (TextView) itemView.findViewById(R.id.notice_grid_item_look_tv);
            mMerbergridedittv = (TextView) itemView.findViewById(R.id.notice_grid_item_edit_tv);
            mNoticegriddeletetv = (TextView) itemView.findViewById(R.id.notice_grid_item_delete_tv);
            mNoticegridcopytv = (TextView) itemView.findViewById(R.id.notice_grid_item_copy_tv);
            mNoticeOverdueIv =(ImageView) itemView.findViewById(R.id.notice_overdue_iv);

            mNoticeGridPathrl = (RelativeLayout) itemView.findViewById(R.id.member_grid_item_path_rl);

            mChooseStateIv = (ImageView) itemView.findViewById(R.id.chooose_state_iv);

    }


    public RelevanceNoticeListViewHolder(View itemView) {
        super(itemView);

    }

    @Deprecated
    public final int getIPosition() {
        return getPosition() - 2;
    }

    public final int getILayoutPosition() {
        return getLayoutPosition() - 2;
    }

    public final int getIAdapterPosition() {
        return getAdapterPosition() - 2;
    }

    public final int getIOldPosition() {
        return getOldPosition() - 2;
    }

    public final long getIItemId() {
        return getItemId();
    }

    public final int getIItemViewType() {
        return getItemViewType();
    }
}
